ret:=rtEZRequestA ("You can also put up a requester with\nthree choices.\nHow do you like the demo so far ?",
"Great|So so|Rubbish", NIL, NIL, NIL);
case ret of
0: ret:=rtEZRequestA ("Too bad, I really hoped you\nwould like it better.",
"So what", NIL, NIL, NIL);
1:
ret:=rtEZRequestA ("I'm glad you like it so much.","Fine", NIL, NIL, NIL);
2:
ret:=rtEZRequestA ("Maybe if you run the demo again\nyou'll REALLY like it.",
"Perhaps", NIL, NIL, NIL);
end;
mytag^[0].ti_Tag:=RTEZ_DefaultResponse;
mytag^[0].ti_Data:=4;
mytag^[1].ti_Tag:=TAG_END;
ret :=rtEZRequestA ("The number of responses is not limited to three\nas you can see. The gadgets are labeled with\nthe 'Return' code from rtEZRequestA().\nPressing 'Return' will choose 4, note that\n'4's button text is printed in boldface.",
ret:=rtEZRequestA ("New for Release 2.0 of ReqTools (V38) is\nthe possibility to define characters in the\nbuttons as keyboard shortcuts.\nAs you can see these characters are underlined.\nNote that pressing shift while still holding\ndown the key will cancel the shortcut.",
"_Great|_Fantastic|_Swell|Oh _Boy",
NIL, NIL, mytag);
values[0]:=5;
values[1]:=Integer("five");
ret:=rtEZRequestA ("You may also use C-style formatting codes in the body text.\nLike this:\n\nThe number %%ld is written %%s. will give:\n\nThe number %ld is written %s.\n\nif you also pass '5' and 'five' to rtEZRequestA().",
"_Proceed", NIL, @values[0], mytag);
mytag^[0].ti_Tag:=RT_IDCMPFlags;
mytag^[0].ti_Data:=DISKINSERTED;
mytag^[1].ti_Tag:=RT_Underscore;
mytag^[1].ti_Data:=Integer('_');
mytag^[2].ti_Tag:=TAG_END;
ret:=rtEZRequestA ("It is also possible to pass extra IDCMP flags\nthat will satisfy rtEZRequestA(). This requester\nhas had DISKINSERTED passed to it.\n(Try inserting a disk).",
"_Continue", NIL, NIL, mytag);
if ((ret=DISKINSERTED)) then
ret:=rtEZRequestA ("You inserted a disk.", "I did", NIL, NIL, NIL)
else
ret:=rtEZRequestA ("You used the 'Continue' gadget\nto satisfy the requester.", "I did", NIL, NIL, NIL);
mytag^[0].ti_Tag:=RT_ReqPos;
mytag^[0].ti_Data:=Integer(REQPOS_TOPLEFTSCR);
mytag^[1].ti_Tag:=RT_Underscore;
mytag^[1].ti_Data:=Integer('_');
mytag^[2].ti_Tag:=TAG_END;
ret:=rtEZRequestA ("Finally, it is possible to specify the position\nof the requester.\nE.g. at the top left of the screen, like this.\nThis works for all requesters, not just rtEZRequestA()!",
"_Amazing", NIL, NIL, mytag);
mytag^[0].ti_Tag:=RT_ReqPos;
mytag^[0].ti_Data:=Integer(REQPOS_CENTERSCR);
mytag^[1].ti_Tag:=TAG_END;
ret:=rtEZRequestA ("Alternatively, you can center the\nrequester on the screen.\nCheck out 'reqtools.doc' for all the possibilities.",